% ctex.sty

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{ctex}
  [2014/06/09 v1.11 ctex
   macros package]

\input{ctex-options.def}

\input{ctex-common.def}

\ifbool{CTEX@caption}{%
  \input{ctex-caption.def}
  \ifundef\if@mainmatter{\let\if@mainmatter\iftrue}{}
  \ifCTEX@cls{article}{\input{ctex-article.def}}{}
  \ifCTEX@cls{report} {\input{ctex-report.def}}{}
  \ifCTEX@cls{book}   {\input{ctex-book.def}}{}
}{}

\input{ctex-fontsize.def}

% ctex.cfg should be loaded very last
\AtEndOfPackage{%
  \makeatletter
  \InputIfFileExists{ctex.cfg}{}{}
  \makeatother}

\endinput
